<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:a4j="http://richfaces.org/a4j" 
    xmlns:rich="http://richfaces.org/rich">

<h:head>

    <title><ui:define name="title">Inmobiliària Insaco</ui:define></title>
    <meta http-equiv="content-type" content="text/xhtml; charset=UTF-8" />

</h:head>

<h:body> 



<h:form>
<rich:dataTable value="#{choicesBean.choices}" var="choice"
      rowKeyVar="row" ajaxKeys="#{choicesBean.keysSet}">
      <f:facet name="header">
            <h:outputText value="Voting for favourite fruit" />
      </f:facet>
      <rich:column>
            <h:outputText value="#{row}" />
      </rich:column>
      <rich:column>
            <f:facet name="header">
                  <h:outputText value="choice name" />
            </f:facet>
            <h:outputText value="#{choice.label}" id="choiceLabel" />
      </rich:column>
      <rich:column>
            <f:facet name="header">
                  <h:outputText value="Votes Number" />
            </f:facet>
            <h:outputText value="#{choice.votesCount}" id="choiceVotes" />
      </rich:column>
</rich:dataTable>
</h:form>
      
      
</h:body>

</html>
